using com.youzu.warh.protocol;


public sealed class SCRoundFightPool : ProtoPoolBase<SCRoundFight>
{
    protected override void RecycleChildren(SCRoundFight data)
    {
        for (int i = 0; i < data.fightInfo.Count; i++)
        {
            ProtoFactory.Recycle(data.fightInfo[i]);
        }

        for (int i = 0; i < data.skills.Count; i++)
        {
            ProtoFactory.Recycle(data.skills[i]);
        }

        for (int i = 0; i < data.siegeFightInfo.Count; i++)
        {
            ProtoFactory.Recycle(data.siegeFightInfo[i]);
        }
    }

    protected override void ClearNetData(SCRoundFight data)
    {
        data.fightInfo.Clear();
        data.skills.Clear();
        data.siegeFightInfo.Clear();
        data.fightFrame = 0;
        data.fightFrameTime = 0;
    }
}
